//
//  MTPartyDetailFooterView.swift
//  MT
//
//  Created by ooops on 2020/5/31.
//  Copyright © 2020 张强. All rights reserved.
//

import Foundation
import MTCategory

class MTPartyDetailFooterView: UIView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
        makeConstraint()
    }
    
    lazy var lineView: UIView = {
        let v = UIView()
        v.backgroundColor = UIColor.seprateLine.x707070
        return v
    }()
    
    lazy var titleLabel: UILabel = {
        let l = UILabel()
        l.font = PingFangSCSemiboldFont(14)
        l.textColor = UIColor.text.x1d1a1a
        l.text = "特别说明"
        return l
    }()
    
    lazy var subTitleLabel: UILabel = {
        let l = UILabel()
        l.font = PingFangSCMediumFont(12)
        l.textColor = UIColor.text.x9b9b9b
        l.numberOfLines = 0
        l.text = "本次聚会活动为异地成员提供酒店机票。参与者不需要垫付费用，且与发布者进行协商，本平台不参与该项相关费用问题。"
        return l
    }()
    
    private func setupUI() {
        addSubview(lineView)
        addSubview(titleLabel)
        addSubview(subTitleLabel)
    }
    
    private func makeConstraint() {
        lineView.snp.makeConstraints { (make) in
            make.left.equalTo(10)
            make.right.equalTo(-10)
            make.centerX.equalToSuperview()
            make.top.equalToSuperview().offset(10)
            make.height.equalTo(1)
        }
        
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(17)
            make.top.equalTo(lineView.snp.bottom).offset(10)
        }
        
        subTitleLabel.snp.makeConstraints { (make) in
            make.left.equalTo(17)
            make.right.equalTo(-17)
            make.top.equalTo(titleLabel.snp.bottom).offset(10)
        }
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }

    
}
